import { createApp } from 'vue'
import { createPinia } from 'pinia'
import '@/assets/reset.css';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import BaiduMap from 'vue-baidu-map-3x'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import * as echarts from "echarts"



// import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.config.globalProperties.$echarts=echarts
app.use(createPinia())
app.use(router)
app.use(ElementPlus)
app.use(BaiduMap, {
   // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
   ak: 'GiTirMP4aEYvG5K8wb8wF06RTmI1S0f3'
   // v:'2.0',  // 默认使用3.0
   // type: 'WebGL' // ||API 默认API  (使用此模式 BMap=BMapGL)
  })
/* app.use(ElementPlus, {
  locale: zhCn,
}) */
app.mount('#app')





